/**
 * @author nttdocomo
 */
seajs.config({
	alias : {
		'jquery' : 'jquery.min',
		'backbone' : 'backbone',
		'underscore' : 'underscore'
	},
	base : 'http://ui.example.com/js/',
	charset : 'utf-8'
});
TestCase("FormFieldTest", {
	testTemplateDefine : function() {
		seajs.use("http://ui.example.com/js/button/button.js", function() {
			var button = new aries.button.Button();
			button.$el.trigger('mouseenter');
			assertClassName("mouseenter has class", "g-over", button.$el[0])
			button.$el.trigger('mouseleave');
			assertFalse("after mouse leave the button do not has class 'g-over'", button.$el.hasClass("g-over"))
			for (var i = 0; i < 10; i++) {
				button.$el.trigger('mouseenter');
				assertClassName("mouseenter has class", "g-over", button.$el[0])
				button.$el.trigger('mouseleave');
				assertFalse("after mouse leave the button do not has class 'g-over'", button.$el.hasClass("g-over"))
			}
		})
	}
});
